﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Display.GridlistUI.model {
    import Engine.Managers.*;
    import Classes.*;

    public class ItemInstanceCellModel extends ItemCellModel {

        override protected function loadContent():void{
            var _local2:String;
            var _local1:ItemInstance = (getCellValue() as ItemInstance);
            if (_local1){
                _local2 = Global.gameSettings.getImageByName(_local1.getItem().name, "icon");
                if (((!(m_contentLoader)) && (_local2))){
                    m_contentLoader = LoadingManager.load(_local2, onContentLoaded, LoadingManager.PRIORITY_HIGH);
                } else {
                    onContentLoaded();
                };
            };
        }

    }
}//package Display.GridlistUI.model 
